﻿namespace nine
{
    internal class Program
    {
        static void Main(string[] args)
        {
          
                double height = 100; 
                double totalDistance = 0; 

                for (int i = 1; i <= 10; i++)
                {
                    
                    totalDistance += height;

                    
                    if (i < 10) // 第10次落地后不反弹
                    {
                        totalDistance += height / 2;
                    }

                    height /= 2; // 高度减半

                    
                }
            Console.WriteLine("第" + 10 + "次落地时，共经过：" + totalDistance + "米");
            Console.WriteLine("第" + 10+ "次反弹高度：" + height + "米");
           
        }
        }
    }
